import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component:() => import('@/pages/community/index'),
      
    },
    {
      path: '/home1',
      name: 'Home1',
      component:() => import('@/pages/home/home1'),
      meta: {
        title: "足球数据",
        name:'referrer',
        content:'no-referrer'
      },
    },
    {
      path: '/home2',
      name: 'Home2',
      component:() => import('@/pages/home/home2'),
      meta: {
        title: "篮球数据",
        name:'referrer',
        content:'no-referrer'
      },
    },
    // {
    //   path: '/filtrate',
    //   name: 'Filtrate',
    //   component:() => import('@/pages/Filtrate/index'),
    // },
    {
      path: '/AreaGame',
      name: 'AreaGame',
      component:() => import('@/pages/AreaGame/index'),
    },
    {
      path: '/AreaGame/List',
      name: 'AreaGameList',
      component:() => import('@/pages/AreaGame/list'),
    },
    {
      path: '/DataBank',
      name: 'DataBank',
      component:() => import('@/pages/DataBank/index'),
    },
    {
      path: '/DataBankDeatil/:title/:id',
      name: 'DataBankDeatil',
      component:() => import('@/pages/DataBank/deatil'),
    },
    {
      path: '/GameDetail',
      name: 'GameDetail',
      component:() => import('@/pages/GameDetail/index'),
    },
    {
      path: '/GameDetail/:id',
      name: 'GameDetails',
      component:() => import('@/pages/GameDetail/deatil'),
    },
    {
      path: '/GamesLQ',
      name: 'GamesLQ',
      component:() => import('@/pages/GamesLQ/index'),
    },
    {
      path: '/Games',
      name: 'Games',
      component:() => import('@/pages/Games/index'),
      meta: {
        name:'referrer',
        content:'no-referrer'
      },
    },
    {
      path: '/Deatil/:id',
      name: 'Deatil',
      component:() => import('@/pages/Deatil/index'),
      meta: {
        name:'referrer',
        content:'no-referrer'
      },
    },
    {
      path: '/DeatilLQ/:id',
      name: 'DeatilLQ',
      component:() => import('@/pages/Deatil/index_lq'),
      meta: {
        name:'referrer',
        content:'no-referrer'
      },
    },
    {
      path: '/Search',
      name: 'Search',
      component:() => import('@/pages/Search/index'),
    },
    {
      path: '/ShooterList/:name/:num', 
      name: 'ShooterList',
      component:() => import('@/pages/ShooterList/index'),
    },
    {
      path: '/error', 
      name: 'error',
      component:() => import('@/pages/error/index'),
    },
    {
      path: '/NBA', 
      name: 'NBA',
      component:() => import('@/pages/NBA/index'),
      meta: {
        name:'referrer',
        content:'no-referrer'
      },
    },
    {
      path: '/user', 
      name: 'user',
      component:() => import('@/pages/user/index'),
    },
    {
      path: '/user/myCircle', 
      name: 'myCircle',
      component:() => import('@/pages/myCircle/index'),
    },
    {
      path: '/user/feedback', 
      name: 'feedback',
      component:() => import('@/pages/user/feedback/index'),
    },
    {
      path: '/user/messages', 
      name: 'messages',
      component:() => import('@/pages/user/messages/index'),
    },
    {
      path: '/user/information', 
      name: 'information',
      component:() => import('@/pages/user/information/index'),
    },
    {
      path: '/user/mySet', 
      name: 'mySet',
      component:() => import('@/pages/user/mySet/index'),
    },
    {
      path: '/public/register', 
      name: 'register',
      component:() => import('@/pages/public/register/index'),
    },
    {
      path: '/public/login', 
      name: 'login',
      component:() => import('@/pages/public/login/index'),
    },
    {
      path: '/public/forgetPassword', 
      name: 'forgetPassword',
      component:() => import('@/pages/public/forgetPassword/index'),
    },
    {
      path: '/comment', 
      name: 'comment',
      component:() => import('@/pages/comment/index'),
    },
    {
      path: '/myPost', 
      name: 'myPost',
      component:() => import('@/pages/myPost/index'),
    },
    {
      path: '/collection', 
      name: 'collection',
      component:() => import('@/pages/myCollection/index'),
    },
    {
      path: '/consultation', 
      name: 'consultation',
      component:() => import('@/pages/Consultation/index'),
    },
    {
      path: '/consultation/details', 
      name: 'consultationDetails',
      component:() => import('@/pages/Consultation/details/index'),
    },
    {
      path: '/history', 
      name: 'history',
      component:() => import('@/pages/history/index'),
    },
    {
      path: '/posting', 
      name: 'posting',
      component:() => import('@/pages/myPost/posting'),
    },
    {
      path: '/report', 
      name: 'report',
      component:() => import('@/pages/report/index'),
    },
    {
      path: '/personal', 
      name: 'personal',
      component:() => import('@/pages/user/personal/index'),
    },
    {
      path: '/HisConcern', 
      name: 'HisConcern',
      component:() => import('@/pages/HisConcern/index'),
    },
    // 已加入
    {
      path: '/haveJoined', 
      name: 'haveJoined',
      component:() => import('@/pages/haveJoined/index'),
    },
    // 粉丝
    {
      path: '/Fans', 
      name: 'Fans',
      component:() => import('@/pages/Fans/index'),
    },
    {
      path: '/PostDetails', 
      name: 'PostDetails',
      component:() => import('@/pages/PostDetails/index'),
    },
    // 精彩评论
    {
      path: '/WonderfulCommentary', 
      name: 'WonderfulCommentary',
      component:() => import('@/pages/WonderfulCommentary/index'),
    },
    // 账号与安全
    {
      path: '/userSecurity', 
      name: 'userSecurity',
      component:() => import('@/pages/user/userSecurity/index'),
    },
    
    // 话题详情
    {
      path: '/TopicDetails', 
      name: 'TopicDetails',
      component:() => import('@/pages/TopicDetails/index'),
    },
  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
